package com.wash.shoes.controller.pc;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.domain.R;
import com.wash.shoes.domain.vo.ShoeRackGridVo;
import com.wash.shoes.entity.ShoeRackGridPo;
import com.wash.shoes.service.ShoeRackGridService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ljg
 * @since 2024-08-27
 */
@Api(tags = {"PC-鞋架格子"})
@RestController
@RequestMapping({"/dev-api/shoeRackGrid", "/shoeRackGrid"})
public class ShoeRackGridController {

    @Autowired
    ShoeRackGridService shoeRackGridService;

    @ApiOperation("获取鞋架格子列表")
    @PostMapping("/list")
    public R<Page<ShoeRackGridVo>> pageList(@RequestBody ShoeRackGridPo shoeRackGridPo) {
        Page<ShoeRackGridVo> page = shoeRackGridService.pageList(shoeRackGridPo);
        return R.ok(page);
    }

}

